<template>
    <!-- 全局提示框 -->
    <div v-show="visible" class="dialog-tips">
        <div>{{message}}</div>
    </div>
</template>
<script>
export default {
  data() {
    return {
      visible: false,
      message: ''
    }
  }
}
</script>
<style lang="scss">
.dialog-tips{
  position: fixed;
  left: 50%;
  top: 80px;
  padding: 15px 15px 15px 20px;
  min-width: 380px;
  border: 1px solid #063829;
  box-sizing: border-box;
  border-radius: 4px;
  text-align: center;
  transform: translateX(-50%);
  color: #fff;
  background-color: #05805d;
  transition: opacity .3s,transform .4s;
  overflow: hidden;
  z-index: 100;
}
</style>
